﻿using System;


namespace Experiment2
{

    public interface ICollectHomeworkable
    {
        void Collect();
    }
   public class person
    {
       public void Collect() { }
    }

    public class Teacher : person, ICollectHomeworkable
    {
        public new void Collect()
        {
            Console.WriteLine("老师收作业。");
        }
        void ICollectHomeworkable.Collect()
        {
            Console.WriteLine("老师收作业。");
        }
    }
    public class Student : person, ICollectHomeworkable
    {
        public new void Collect()
        {
            Console.WriteLine("学生收作业。");
        }
        void ICollectHomeworkable.Collect()
        {
            Console.WriteLine("学生收作业。");
        }
    }
}
